package routers

import (
	"crmObject/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.IndexController{})
	beego.Router("/login", &controllers.LoginController{}, "get:ShowLogin;post:HandelLogin")
	beego.Router("/quitLogin", &controllers.LoginController{}, "get:QuitLogin")
	//beego.Router("/updatePassword", &controllers.LoginController{}, "get:ToUpdatePassword")

	//-----------------------------------营销机会管理---------------------------------------
	//插入营销机会信息
	beego.Router("/insertMarketingOpportunities", &controllers.MarketingOpportunitiesController{}, "post:InsertMarketingOpportunities")
	//修改营销机会信息
	beego.Router("/updateMarketingOpportunities", &controllers.MarketingOpportunitiesController{}, "put:UpdateMarketingOpportunities")
	//删除营销机会信息
	beego.Router("/deleteMarketingOpportunities", &controllers.MarketingOpportunitiesController{}, "Delete:DeleteMarketingOpportunities")
	//进入显示列表
	//beego.Router("/toListMarketingOpportunities", &controllers.MarketingOpportunitiesController{}, "get:ToListMarketingOpportunities")
	//显示列表
	beego.Router("/listMarketingOpportunities", &controllers.MarketingOpportunitiesController{}, "get:ListMarketingOpportunities")
	//修改时查询的单条数据
	beego.Router("/updateSelect", &controllers.MarketingOpportunitiesController{}, "post:UpdateSelect")

	//查询营销机会信息
	beego.Router("/selectMarketingOpportunities", &controllers.MarketingOpportunitiesController{}, "post:SelectMarketingOpportunities")

	//----------------------------客户开发计划--------------------------------------
	//获取列表信息
	beego.Router("/listCustomerDevelopmentPlans", &controllers.CustomerDevelopmentPlansController{}, "get:ListCustomerDevelopmentPlans")
	//关键词搜索
	beego.Router("/SelectCustomerDevelopmentPlans", &controllers.CustomerDevelopmentPlansController{}, "post:SelectCustomerDevelopmentPlans")
	//删除
	beego.Router("/deleteCustomerDevelopmentPlans", &controllers.CustomerDevelopmentPlansController{}, "delete:DeleteCustomerDevelopmentPlans")
	//展示修改
	beego.Router("/selectUpdateCustomerDevelopmentPlans", &controllers.CustomerDevelopmentPlansController{}, "post:SelectUpdateCustomerDevelopmentPlans")
	//修改
	beego.Router("/updateCustomerDevelopmentPlans", &controllers.CustomerDevelopmentPlansController{}, "put:UpdateCustomerDevelopmentPlans")
	//添加
	beego.Router("/addCustomerDevelopmentPlans", &controllers.CustomerDevelopmentPlansController{}, "post:AddCustomerDevelopmentPlans")
	//搜索
	beego.Router("/selectCustomerDevelopmentPlans", &controllers.CustomerDevelopmentPlansController{}, "post:SelectCustomerDevelopmentPlans")

	//----------------------------客户流失管理--------------------------------------
	//客户流失列表展示
	beego.Router("/listRunAwayCustomers", &controllers.CustomersController{}, "get:ListRunAwayCustomers")
	//客户流逝关键子查询
	beego.Router("/selectRunAwayCustomers", &controllers.CustomersController{}, "post:SelectRunAwayCustomers")
	//--------------------客户信息管理--------------------
	//查询客户信息列表
	beego.Router("/selectCustomers", &controllers.CustomersController{}, "get:SelectCustomers")
	//添加客户信息
	beego.Router("/addCustomers", &controllers.CustomersController{}, "post:AddCustomers")
	//删除客户信息
	beego.Router("/deleteCustomers", &controllers.CustomersController{}, "delete:DeleteCustomers")
	//修改时展示客户信息
	beego.Router("/selectUpdateCustomers", &controllers.CustomersController{}, "post:SelectUpdateCustomers")
	//修改客户信息
	beego.Router("/updateCustomers", &controllers.CustomersController{}, "put:UpdateCustomers")
	//客户历史订单
	//beego.Router("/selectCustomersOrders", &controllers.CustomersController{}, "post:SelectCustomersOrders")
	//关键字查询
	beego.Router("/keyWordSelectCustomers", &controllers.CustomersController{}, "post:KeyWordSelectCustomers")

	//----------------------服务管理---------------------------
	//添加服务项目
	beego.Router("/addService", &controllers.ServiceController{}, "post:AddService")
	//展示修改的服务数据
	beego.Router("/selectUpdateService", &controllers.ServiceController{}, "post:SelectUpdateService")
	//更改服务项目
	beego.Router("/updateService", &controllers.ServiceController{}, "put:UpdateService")
	//删除服务项目
	beego.Router("/deleteService", &controllers.ServiceController{}, "delete:DeleteService")
	//列表展示服务项目
	beego.Router("/listService", &controllers.ServiceController{}, "get:ListService")
	//关键子查询
	beego.Router("/keyWordSelectService", &controllers.ServiceController{}, "post:KeyWordSelectService")

	//-------------------订单服务生成----------------
	//进入订单页面
	beego.Router("/toSalesOrders", &controllers.SalesOrdersController{}, "get:ToSalesOrders")
	//生成新订单
	beego.Router("/addSalesOrders", &controllers.SalesOrdersController{}, "post:AddSalesOrders")
	//关键字查询服务
	beego.Router("/selectServiceSalesOrders", &controllers.SalesOrdersController{}, "post:SelectServiceSalesOrders")

	//----------------------订单存档管理---------------------------
	//展示单条要修改的信息
	beego.Router("/selectUpdateSalesOrders", &controllers.SalesOrdersController{}, "post:SelectUpdateSalesOrders")
	//修改订单
	beego.Router("/updateSalesOrders", &controllers.SalesOrdersController{}, "put:UpdateSalesOrders")
	//删除订单
	beego.Router("/deleteSalesOrders", &controllers.SalesOrdersController{}, "delete:DeleteSalesOrders")
	//订单列表
	beego.Router("/listSalesOrders", &controllers.SalesOrdersController{}, "get:ListSalesOrders")
	//订单搜索
	//beego.Router("/keyWordSelectSalesOrders", &controllers.SalesOrdersController{}, "post:KeyWordSelectSalesOrders")

	//---------------------管理员管理-----------------------------------
	//登陆进入管理员页面
	beego.Router("/toIndex", &controllers.AdminController{}, "get:ToIndex")

	//-----------------用户管理------------------------------------
	//进入用户管理界面
	beego.Router("/listUser", &controllers.AdminController{}, "get:ListUser")
	//添加账户
	beego.Router("/addUser", &controllers.AdminController{}, "post:AddUser")
	//删除账户
	beego.Router("/deleteUser", &controllers.AdminController{}, "delete:DeleteUser")
	////显示要修改的账户信息
	//beego.Router("/selectUpdateUser", &controllers.AdminController{}, "post:SelectUpdateUser")
	////修改账户
	//beego.Router("/updateUser", &controllers.AdminController{}, "put:UpdateUser")

}
